<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
</body>
</html>
<script>
    //此案例 类似于 const {log} = console / log('123') 可以输出
    const ming = {
        name: 'ming',
        age:26,
        hong : function(a,b){
            console.log(a + b);
        }
    }
    // ming.hong(3,4)
    // hong(3,4)

    // console.log(hong);
    const { hong } = ming
    console.log(ming);
    console.log(hong);
    const {name} = ming
    console.log(name);
    // hong(3,4)
</script>